package com.zj.study.utils.validation.validator.negitave;


import com.zj.study.utils.validation.annotation.ValidateSupport;
import org.springframework.lang.NonNull;

/**
 * @author 谭耀飞
 * @since 2020.12.0
 */
@ValidateSupport(Double.class)
public class NegativeOrZeroValidatorForDouble extends
    AbstractNegativeOrZeroValidator<Double> {

  @Override
  boolean compare(@NonNull Double value) {
    return value <= 0D;
  }
}
